﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintEN.aspx.cs" Inherits="Claims_PrintEN" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <style type="text/css">
        .table
        {
            width: 842px;
            font-family:Arial;
            font-size:medium;
        }
        .span
        {
            font-weight: bold;
            float:left;
        }
        .leftLabel
        {
        	float:left;
        }
        .nextLine
        {
        	clear:left;
        	float:left;
        }
        
     .style1
     {
         width: 100%;
     }
        
    </style>

    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="sm" runat="server">
        </asp:ScriptManager>
        
    <table class="table">
        <tr>
            <td>
                <asp:Label ID="lblCustomer" runat="server"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
            <td colspan="3">
                <span class="span">CLAIM NOTE</span></td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                <span class="span">Date</span>
                <asp:Label ID="lblDate" runat="server" CssClass="nextLine"></asp:Label>
            </td>
            <td>
                <span class="span">Claim No</span>
                <asp:Label ID="lblClaimNo" runat="server" CssClass="nextLine"></asp:Label>
            </td>
            <td>
                <span class="span">Supplier</span>
                <asp:Label ID="lblSupplierId" runat="server" CssClass="nextLine"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblSupplier" runat="server" CssClass="leftLabel"></asp:Label>
                <asp:Label ID="lblSupplAddress" runat="server" CssClass="nextLine"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
            <td colspan="2">
                <span class="span">Our reference</span>
                <asp:Label ID="lblOurReference" runat="server" CssClass="nextLine"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                <span class="span">Our order no</span>
                <asp:Label ID="lblOurOrderNo" runat="server" CssClass="nextLine"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <span class="span">Dely note</span>
                <asp:Label ID="lblDelyNote" runat="server" CssClass="nextLine"></asp:Label>
            </td>
            <td>
                <span class="span">Arrival date</span>
                <asp:Label ID="lblArrivalDate" runat="server" CssClass="nextLine"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                <span class="span">REQUESTED ACTION</span>
                <asp:Label ID="lblReqAction" runat="server" CssClass="nextLine"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <span class="span">OTHER ACTION</span>
                <asp:Label ID="lblOtherAction" runat="server" CssClass="nextLine"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="5">
                <telerik:RadGrid ID="RadGridRejectedItems" runat="server" Skin="Default2006" 
                    DataSourceID="LinqDataSourceRejItems" GridLines="None" 
                    onitemdatabound="RadGridRejectedItems_ItemDataBound">
                    <HeaderContextMenu EnableTheming="True">
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                    </HeaderContextMenu>

                    <MasterTableView AutoGenerateColumns="False" DataKeyNames="Id" 
                        DataSourceID="LinqDataSourceRejItems">
                    <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>

                    <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="ItemCode" HeaderText="ItemCode" 
                                SortExpression="ItemCode" UniqueName="ItemCode">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ItemName" HeaderText="ItemName" 
                                SortExpression="ItemName" UniqueName="ItemName">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ItemDescription" 
                                HeaderText="ItemDescription" SortExpression="ItemDescription" 
                                UniqueName="ItemDescription">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ReceivedQuantity" DataType="System.Int32" 
                                HeaderText="ReceivedQuantity" SortExpression="ReceivedQuantity" 
                                UniqueName="ReceivedQuantity">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ApprovedQuantity" DataType="System.Int32" 
                                HeaderText="ApprovedQuantity" SortExpression="ApprovedQuantity" 
                                UniqueName="ApprovedQuantity">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="RejectedQuantity" DataType="System.Int32" 
                                HeaderText="RejectedQuantity" SortExpression="RejectedQuantity" 
                                UniqueName="RejectedQuantity">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ExtraWork" DataType="System.Decimal" 
                                HeaderText="ExtraWork" SortExpression="ExtraWork" UniqueName="ExtraWork">
                            </telerik:GridBoundColumn>
                            <%--<telerik:GridTemplateColumn HeaderText="Status" UniqueName="Status" 
                                DataType="System.Int32" SortExpression="Status"> 
                                <ItemTemplate>
                                    <asp:Label ID="lblStatus" runat="server" ></asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>--%>
                            <telerik:GridDropDownColumn HeaderText="Status" DataSourceID="LinqDataSource1" 
                                DataField="id" ListValueField="id" ListTextField="status1" UniqueName="Status">
                            </telerik:GridDropDownColumn>
                            <telerik:GridBoundColumn DataField="Price" DataType="System.Decimal" 
                                HeaderText="Price" SortExpression="Price" UniqueName="Price">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="QualityInspCost" DataType="System.Decimal" 
                                HeaderText="QualityInspCost" SortExpression="QualityInspCost" 
                                UniqueName="QualityInspCost">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>

                    <FilterMenu EnableTheming="True">
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                    </FilterMenu>
                </telerik:RadGrid>
                <asp:LinqDataSource ID="LinqDataSourceRejItems" runat="server" 
                    ContextTypeName="ItemsDataContext" TableName="RejectedItems" 
                    Where="ClaimId == @ClaimId">
                    <WhereParameters>
                        <asp:QueryStringParameter DefaultValue="18" Name="ClaimId" 
                            QueryStringField="id" Type="Int32" />
                    </WhereParameters>
                </asp:LinqDataSource>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="ItemsDataContext" Select="new (id, status1)" 
                    TableName="Status">
                </asp:LinqDataSource>
            </td>
        </tr>
    </table>
    
    </div>
    </form>
</body>
</html>
